package cn.handong.tool.task;

import org.junit.Test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class StudyPlan {
    public static void main(String[] args) {
        System.out.printf("112");

    }


    @Test
    public void get(){

        String str = getStr();
        String[] s = str.split("    ");

        System.out.println(s[0].split("\n")[0]);
        System.out.println(s[1].split("\n")[0]);

        System.out.println(s[0]);
        System.out.println(s[1]);
        System.out.printf("121");
        ArrayList<DatePlan> list = new ArrayList<>();
        for (int i = 0; i < s.length; i++) {
            DatePlan plan = new DatePlan();
            String oriName = s[i].split("\n")[0];
            String oriTime = s[++i].split("\n")[0];
            plan.setOriginName(oriName);
            plan.setOriginTime(oriTime);
            plan.setName(oriName.split("_")[1]);
            Integer sec = Integer.parseInt(oriTime.split(":")[0])*60 + Integer.parseInt(oriTime.split(":")[1]);
            plan.setSecTime(sec);
//            String totalTime = sec%60
            list.add(plan);
        }

    }










    public String getStr(){
        return  "P101_前言闲聊和课程说明\n" +
                "    15:28\n" +
                "    P202_零基础微服务架构理论入门\n" +
                "    20:31\n" +
                "    P303_第二季Boot和Cloud版本选型\n" +
                "    17:08\n" +
                "    P404_Cloud组件停更说明\n" +
                "    18:33\n" +
                "    P505_父工程Project空间新建\n" +
                "    12:34\n" +
                "    P606_父工程pom文件\n" +
                "    06:06\n" +
                "    P707_复习DependencyManagement和Dependencies\n" +
                "    07:45\n" +
                "    P808_支付模块构建(上)\n" +
                "    15:05\n" +
                "    P909_支付模块构建(中)\n" +
                "    35:01\n" +
                "    P1010_支付模块构建(下)\n" +
                "    09:45\n" +
                "    P1111_热部署Devtools\n" +
                "    06:35\n" +
                "    P1212_消费者订单模块(上)\n" +
                "    20:20\n" +
                "    P1313_消费者订单模块(下)\n" +
                "    10:21\n" +
                "    P1414_工程重构\n" +
                "    09:40\n" +
                "    P1515_Eureka基础知识\n" +
                "    11:26\n" +
                "    P1616_EurekaServer服务端安装\n" +
                "    09:10\n" +
                "    P1717_支付微服务8001入驻进eurekaServer\n" +
                "    09:17\n" +
                "    P1818_订单微服务80入驻进eurekaServer\n" +
                "    06:26\n" +
                "    P1919_Eureka集群原理说明\n" +
                "    06:51\n" +
                "    P2020_Eureka集群环境构建\n" +
                "    09:14\n" +
                "    P2121_订单支付两微服务注册进Eureka集群\n" +
                "    05:34\n" +
                "    P2222_支付微服务集群配置\n" +
                "    21:06\n" +
                "    P2323_actuator微服务信息完善\n" +
                "    07:48\n" +
                "    P2424_服务发现Discovery\n" +
                "    11:56\n" +
                "    P2525_Eureka自我保护理论知识\n" +
                "    08:56\n" +
                "    P2626_怎么禁止自我保护\n" +
                "    10:06\n" +
                "    P2727_Eureka停更说明\n" +
                "    03:02\n" +
                "    P2828_支付服务注册进zookeeper\n" +
                "    18:43\n" +
                "    P2929_临时还是持久节点\n" +
                "    05:41\n" +
                "    P3030_订单服务注册进zookeeper\n" +
                "    10:35\n" +
                "    P3131_Consul简介\n" +
                "    05:48\n" +
                "    P3232_安装并运行Consul\n" +
                "    03:47\n" +
                "    P3333_服务提供者注册进Consul\n" +
                "    07:01\n" +
                "    P3434_服务消费者注册进Consul\n" +
                "    06:11\n" +
                "    P3535_三个注册中心异同点\n" +
                "    10:43\n" +
                "    P3636_Ribbon入门介绍\n" +
                "    09:15\n" +
                "    P3737_Ribbon的负载均衡和Rest调用\n" +
                "    13:14\n" +
                "    P3838_Ribbon默认自带的负载规则\n" +
                "    04:02\n" +
                "    P3939_Ribbon负载规则替换\n" +
                "    06:20\n" +
                "    P4040_Ribbon默认负载轮训算法原理\n" +
                "    08:48\n" +
                "    P4141_RoundRobinRule源码分析\n" +
                "    12:39\n" +
                "    P4242_Ribbon之手写轮询算法\n" +
                "    27:33\n" +
                "    P4343_OpenFeign是什么\n" +
                "    08:42\n" +
                "    P4444_OpenFeign服务调用\n" +
                "    16:24\n" +
                "    P4545_OpenFeign超时控制\n" +
                "    10:53\n" +
                "    P4646_OpenFeign日志增强\n" +
                "    04:46\n" +
                "    P4747_Hystrix是什么\n" +
                "    05:56\n" +
                "    P4848_Hystrix停更进维\n" +
                "    05:03\n" +
                "    P4949_Hystrix的服务降级熔断限流概念初讲\n" +
                "    07:00\n" +
                "    P5050_Hystrix支付微服务构建\n" +
                "    14:58\n" +
                "    P5151_JMeter高并发压测后卡顿\n" +
                "    08:10\n" +
                "    P5252_订单微服务调用支付服务出现卡顿\n" +
                "    12:48\n" +
                "    P5353_降级容错解决的维度要求\n" +
                "    04:28\n" +
                "    P5454_Hystrix之服务降级支付侧fallback\n" +
                "    12:13\n" +
                "    P5555_Hystrix之服务降级订单侧fallback\n" +
                "    12:06\n" +
                "    P5656_Hystrix之全局服务降级DefaultProperties\n" +
                "    07:35\n" +
                "    P5757_Hystrix之通配服务降级FeignFallback\n" +
                "    10:48\n" +
                "    P5858_Hystrix之服务熔断理论\n" +
                "    08:36\n" +
                "    P5959_Hystrix之服务熔断案例(上)\n" +
                "    11:59\n" +
                "    P6060_Hystrix之服务熔断案例(下)\n" +
                "    05:57\n" +
                "    P6161_Hystrix之服务熔断总结\n" +
                "    06:25\n" +
                "    P6262_Hystrix工作流程最后总结\n" +
                "    09:09\n" +
                "    P6363_Hystrix图形化Dashboard搭建\n" +
                "    05:39\n" +
                "    P6464_Hystrix图形化Dashboard监控实战\n" +
                "    09:52\n" +
                "    P6565_GateWay和Zuul课程说明\n" +
                "    04:45\n" +
                "    P6666_GateWay是什么\n" +
                "    09:56\n" +
                "    P6767_GateWay非阻塞异步模型\n" +
                "    08:01\n" +
                "    P6868_Gateway工作流程\n" +
                "    06:06\n" +
                "    P6969_Gateway9527搭建\n" +
                "    11:59\n" +
                "    P7070_Gateway配置路由的两种方式\n" +
                "    11:59\n" +
                "    P7171_GateWay配置动态路由\n" +
                "    07:21\n" +
                "    P7272_GateWay常用的Predicate\n" +
                "    20:08\n" +
                "    P7373_GateWay的Filter\n" +
                "    12:10\n" +
                "    P7474_Config分布式配置中心介绍\n" +
                "    10:50\n" +
                "    P7575_Config配置总控中心搭建\n" +
                "    15:20\n" +
                "    P7676_Config客户端配置与测试\n" +
                "    16:47\n" +
                "    P7777_Config动态刷新之手动版\n" +
                "    12:50\n" +
                "    P7878_Bus消息总线是什么\n" +
                "    07:55\n" +
                "    P7979_Bus之RabbitMQ环境配置\n" +
                "    03:56\n" +
                "    P8080_Bus动态刷新全局广播的设计思想和选型\n" +
                "    07:48\n" +
                "    P8181_Bus动态刷新全局广播配置实现\n" +
                "    14:13\n" +
                "    P8282_Bus动态刷新定点通知\n" +
                "    05:41\n" +
                "    P8383_Stream为什么被引入\n" +
                "    07:51\n" +
                "    P8484_Stream是什么及Binder介绍\n" +
                "    06:20\n" +
                "    P8585_Stream的设计思想\n" +
                "    07:19\n" +
                "    P8686_Stream编码常用注解简介\n" +
                "    05:03\n" +
                "    P8787_Stream消息驱动之生产者\n" +
                "    17:04\n" +
                "    P8888_Stream消息驱动之消费者\n" +
                "    11:01\n" +
                "    P8989_Stream之消息重复消费\n" +
                "    08:27\n" +
                "    P9090_Stream之group解决消息重复消费\n" +
                "    07:56\n" +
                "    P9191_Stream之消息持久化\n" +
                "    03:56\n" +
                "    P9292_Sleuth是什么\n" +
                "    04:25\n" +
                "    P9393_Sleuth之zipkin搭建安装\n" +
                "    06:13\n" +
                "    P9494_Sleuth链路监控展现\n" +
                "    08:28\n" +
                "    P9595_Cloud Alibaba简介\n" +
                "    16:26\n" +
                "    P9696_Nacos简介和下载\n" +
                "    07:16\n" +
                "    P9797_Nacos安装\n" +
                "    03:03\n" +
                "    P9898_Nacos之服务提供者注册\n" +
                "    17:27\n" +
                "    P9999_Nacos之服务消费者注册和负载\n" +
                "    10:11\n" +
                "    P100100_Nacos服务注册中心对比提升\n" +
                "    06:52\n" +
                "    P101101_Nacos之服务配置中心\n" +
                "    20:02\n" +
                "    P102102_Nacos之命名空间分组和DataID三者关系\n" +
                "    06:06\n" +
                "    P103103_Nacos之DataID配置\n" +
                "    06:30\n" +
                "    P104104_Nacos之Group分组方案\n" +
                "    04:49\n" +
                "    P105105_Nacos之Namespace空间方案\n" +
                "    09:24\n" +
                "    P106106_Nacos集群_架构说明\n" +
                "    11:28\n" +
                "    P107107_Nacos持久化切换配置\n" +
                "    08:45\n" +
                "    P108108_Nacos之Linux版本安装\n" +
                "    05:16\n" +
                "    P109109_Nacos集群配置(上)\n" +
                "    19:34\n" +
                "    P110110_Nacos集群配置(下)\n" +
                "    12:25\n" +
                "    P111111_Sentinel是什么\n" +
                "    07:03\n" +
                "    P112112_Sentinel下载安装运行\n" +
                "    06:13\n" +
                "    P113113_Sentinel初始化监控\n" +
                "    07:54\n" +
                "    P114114_Sentinel流控规则简介\n" +
                "    03:04\n" +
                "    P115115_Sentinel流控-QPS直接失败\n" +
                "    06:27\n" +
                "    P116116_Sentinel流控-线程数直接失败\n" +
                "    06:07\n" +
                "    P117117_Sentinel流控-关联\n" +
                "    07:14\n" +
                "    P118118_Sentinel流控-预热\n" +
                "    08:14\n" +
                "    P119119_Sentinel流控-排队等待\n" +
                "    05:32\n" +
                "    P120120_Sentinel降级简介\n" +
                "    04:48\n" +
                "    P121121_Sentinel降级-RT\n" +
                "    07:29\n" +
                "    P122122_Sentinel降级-异常比例\n" +
                "    07:19\n" +
                "    P123123_Sentinel降级-异常数\n" +
                "    04:16\n" +
                "    P124124_Sentinel热点key(上)\n" +
                "    17:13\n" +
                "    P125125_Sentinel热点key(下)\n" +
                "    10:59\n" +
                "    P126126_Sentinel系统规则\n" +
                "    07:38\n" +
                "    P127127_SentinelResource配置(上)\n" +
                "    10:47\n" +
                "    P128128_SentinelResource配置(中)\n" +
                "    07:47\n" +
                "    P129129_SentinelResource配置(下)\n" +
                "    04:16\n" +
                "    P130130_Sentinel服务熔断Ribbon环境预说\n" +
                "    08:58\n" +
                "    P131131_Sentinel服务熔断无配置\n" +
                "    04:22\n" +
                "    P132132_Sentinel服务熔断只配置fallback\n" +
                "    04:12\n" +
                "    P133133_Sentinel服务熔断只配置blockHandler\n" +
                "    04:10\n" +
                "    P134134_Sentinel服务熔断fallback和blockHandler都配置\n" +
                "    04:47\n" +
                "    P135135_Sentinel服务熔断exceptionsToIgnore\n" +
                "    02:34\n" +
                "    P136136_Sentinel服务熔断OpenFeign\n" +
                "    09:50\n" +
                "    P137137_Sentinel持久化规则\n" +
                "    10:31\n" +
                "    P138138_分布式事务问题由来\n" +
                "    08:28\n" +
                "    P139139_Seata术语\n" +
                "    13:28\n" +
                "    P140140_Seata-Server安装\n" +
                "    13:32\n" +
                "    P141141_Seata业务数据库准备\n" +
                "    09:27\n" +
                "    P142142_Seata之Order-Module配置搭建\n" +
                "    10:59\n" +
                "    P143143_Seata之Order-Module撸码(上)\n" +
                "    18:36\n" +
                "    P144144_Seata之Order-Module撸码(下)\n" +
                "    10:05\n" +
                "    P145145_Seata之Storage-Module说明\n" +
                "    09:20\n" +
                "    P146146_Seata之Account-Module说明\n" +
                "    03:14\n" +
                "    P147147_Seata之@GlobalTransactional验证\n" +
                "    13:30\n" +
                "    P148148_Seata之原理简介\n" +
                "    33:46\n" +
                "    P149149_大厂面试第三季预告片之雪花算法(上)\n" +
                "    37:26\n" +
                "    P150150_大厂面试第三季预告片之雪花算法(下)\n" +
                "    41:36\n";
    }

    /**
     *     P101_前言闲聊和课程说明
     *     15:28
     *     P202_零基础微服务架构理论入门
     *     20:31
     *     P303_第二季Boot和Cloud版本选型
     *     17:08
     *     P404_Cloud组件停更说明
     *     18:33
     *     P505_父工程Project空间新建
     *     12:34
     *     P606_父工程pom文件
     *     06:06
     *     P707_复习DependencyManagement和Dependencies
     *     07:45
     *     P808_支付模块构建(上)
     *     15:05
     *     P909_支付模块构建(中)
     *     35:01
     *     P1010_支付模块构建(下)
     *     09:45
     *     P1111_热部署Devtools
     *     06:35
     *     P1212_消费者订单模块(上)
     *     20:20
     *     P1313_消费者订单模块(下)
     *     10:21
     *     P1414_工程重构
     *     09:40
     *     P1515_Eureka基础知识
     *     11:26
     *     P1616_EurekaServer服务端安装
     *     09:10
     *     P1717_支付微服务8001入驻进eurekaServer
     *     09:17
     *     P1818_订单微服务80入驻进eurekaServer
     *     06:26
     *     P1919_Eureka集群原理说明
     *     06:51
     *     P2020_Eureka集群环境构建
     *     09:14
     *     P2121_订单支付两微服务注册进Eureka集群
     *     05:34
     *     P2222_支付微服务集群配置
     *     21:06
     *     P2323_actuator微服务信息完善
     *     07:48
     *     P2424_服务发现Discovery
     *     11:56
     *     P2525_Eureka自我保护理论知识
     *     08:56
     *     P2626_怎么禁止自我保护
     *     10:06
     *     P2727_Eureka停更说明
     *     03:02
     *     P2828_支付服务注册进zookeeper
     *     18:43
     *     P2929_临时还是持久节点
     *     05:41
     *     P3030_订单服务注册进zookeeper
     *     10:35
     *     P3131_Consul简介
     *     05:48
     *     P3232_安装并运行Consul
     *     03:47
     *     P3333_服务提供者注册进Consul
     *     07:01
     *     P3434_服务消费者注册进Consul
     *     06:11
     *     P3535_三个注册中心异同点
     *     10:43
     *     P3636_Ribbon入门介绍
     *     09:15
     *     P3737_Ribbon的负载均衡和Rest调用
     *     13:14
     *     P3838_Ribbon默认自带的负载规则
     *     04:02
     *     P3939_Ribbon负载规则替换
     *     06:20
     *     P4040_Ribbon默认负载轮训算法原理
     *     08:48
     *     P4141_RoundRobinRule源码分析
     *     12:39
     *     P4242_Ribbon之手写轮询算法
     *     27:33
     *     P4343_OpenFeign是什么
     *     08:42
     *     P4444_OpenFeign服务调用
     *     16:24
     *     P4545_OpenFeign超时控制
     *     10:53
     *     P4646_OpenFeign日志增强
     *     04:46
     *     P4747_Hystrix是什么
     *     05:56
     *     P4848_Hystrix停更进维
     *     05:03
     *     P4949_Hystrix的服务降级熔断限流概念初讲
     *     07:00
     *     P5050_Hystrix支付微服务构建
     *     14:58
     *     P5151_JMeter高并发压测后卡顿
     *     08:10
     *     P5252_订单微服务调用支付服务出现卡顿
     *     12:48
     *     P5353_降级容错解决的维度要求
     *     04:28
     *     P5454_Hystrix之服务降级支付侧fallback
     *     12:13
     *     P5555_Hystrix之服务降级订单侧fallback
     *     12:06
     *     P5656_Hystrix之全局服务降级DefaultProperties
     *     07:35
     *     P5757_Hystrix之通配服务降级FeignFallback
     *     10:48
     *     P5858_Hystrix之服务熔断理论
     *     08:36
     *     P5959_Hystrix之服务熔断案例(上)
     *     11:59
     *     P6060_Hystrix之服务熔断案例(下)
     *     05:57
     *     P6161_Hystrix之服务熔断总结
     *     06:25
     *     P6262_Hystrix工作流程最后总结
     *     09:09
     *     P6363_Hystrix图形化Dashboard搭建
     *     05:39
     *     P6464_Hystrix图形化Dashboard监控实战
     *     09:52
     *     P6565_GateWay和Zuul课程说明
     *     04:45
     *     P6666_GateWay是什么
     *     09:56
     *     P6767_GateWay非阻塞异步模型
     *     08:01
     *     P6868_Gateway工作流程
     *     06:06
     *     P6969_Gateway9527搭建
     *     11:59
     *     P7070_Gateway配置路由的两种方式
     *     11:59
     *     P7171_GateWay配置动态路由
     *     07:21
     *     P7272_GateWay常用的Predicate
     *     20:08
     *     P7373_GateWay的Filter
     *     12:10
     *     P7474_Config分布式配置中心介绍
     *     10:50
     *     P7575_Config配置总控中心搭建
     *     15:20
     *     P7676_Config客户端配置与测试
     *     16:47
     *     P7777_Config动态刷新之手动版
     *     12:50
     *     P7878_Bus消息总线是什么
     *     07:55
     *     P7979_Bus之RabbitMQ环境配置
     *     03:56
     *     P8080_Bus动态刷新全局广播的设计思想和选型
     *     07:48
     *     P8181_Bus动态刷新全局广播配置实现
     *     14:13
     *     P8282_Bus动态刷新定点通知
     *     05:41
     *     P8383_Stream为什么被引入
     *     07:51
     *     P8484_Stream是什么及Binder介绍
     *     06:20
     *     P8585_Stream的设计思想
     *     07:19
     *     P8686_Stream编码常用注解简介
     *     05:03
     *     P8787_Stream消息驱动之生产者
     *     17:04
     *     P8888_Stream消息驱动之消费者
     *     11:01
     *     P8989_Stream之消息重复消费
     *     08:27
     *     P9090_Stream之group解决消息重复消费
     *     07:56
     *     P9191_Stream之消息持久化
     *     03:56
     *     P9292_Sleuth是什么
     *     04:25
     *     P9393_Sleuth之zipkin搭建安装
     *     06:13
     *     P9494_Sleuth链路监控展现
     *     08:28
     *     P9595_Cloud Alibaba简介
     *     16:26
     *     P9696_Nacos简介和下载
     *     07:16
     *     P9797_Nacos安装
     *     03:03
     *     P9898_Nacos之服务提供者注册
     *     17:27
     *     P9999_Nacos之服务消费者注册和负载
     *     10:11
     *     P100100_Nacos服务注册中心对比提升
     *     06:52
     *     P101101_Nacos之服务配置中心
     *     20:02
     *     P102102_Nacos之命名空间分组和DataID三者关系
     *     06:06
     *     P103103_Nacos之DataID配置
     *     06:30
     *     P104104_Nacos之Group分组方案
     *     04:49
     *     P105105_Nacos之Namespace空间方案
     *     09:24
     *     P106106_Nacos集群_架构说明
     *     11:28
     *     P107107_Nacos持久化切换配置
     *     08:45
     *     P108108_Nacos之Linux版本安装
     *     05:16
     *     P109109_Nacos集群配置(上)
     *     19:34
     *     P110110_Nacos集群配置(下)
     *     12:25
     *     P111111_Sentinel是什么
     *     07:03
     *     P112112_Sentinel下载安装运行
     *     06:13
     *     P113113_Sentinel初始化监控
     *     07:54
     *     P114114_Sentinel流控规则简介
     *     03:04
     *     P115115_Sentinel流控-QPS直接失败
     *     06:27
     *     P116116_Sentinel流控-线程数直接失败
     *     06:07
     *     P117117_Sentinel流控-关联
     *     07:14
     *     P118118_Sentinel流控-预热
     *     08:14
     *     P119119_Sentinel流控-排队等待
     *     05:32
     *     P120120_Sentinel降级简介
     *     04:48
     *     P121121_Sentinel降级-RT
     *     07:29
     *     P122122_Sentinel降级-异常比例
     *     07:19
     *     P123123_Sentinel降级-异常数
     *     04:16
     *     P124124_Sentinel热点key(上)
     *     17:13
     *     P125125_Sentinel热点key(下)
     *     10:59
     *     P126126_Sentinel系统规则
     *     07:38
     *     P127127_SentinelResource配置(上)
     *     10:47
     *     P128128_SentinelResource配置(中)
     *     07:47
     *     P129129_SentinelResource配置(下)
     *     04:16
     *     P130130_Sentinel服务熔断Ribbon环境预说
     *     08:58
     *     P131131_Sentinel服务熔断无配置
     *     04:22
     *     P132132_Sentinel服务熔断只配置fallback
     *     04:12
     *     P133133_Sentinel服务熔断只配置blockHandler
     *     04:10
     *     P134134_Sentinel服务熔断fallback和blockHandler都配置
     *     04:47
     *     P135135_Sentinel服务熔断exceptionsToIgnore
     *     02:34
     *     P136136_Sentinel服务熔断OpenFeign
     *     09:50
     *     P137137_Sentinel持久化规则
     *     10:31
     *     P138138_分布式事务问题由来
     *     08:28
     *     P139139_Seata术语
     *     13:28
     *     P140140_Seata-Server安装
     *     13:32
     *     P141141_Seata业务数据库准备
     *     09:27
     *     P142142_Seata之Order-Module配置搭建
     *     10:59
     *     P143143_Seata之Order-Module撸码(上)
     *     18:36
     *     P144144_Seata之Order-Module撸码(下)
     *     10:05
     *     P145145_Seata之Storage-Module说明
     *     09:20
     *     P146146_Seata之Account-Module说明
     *     03:14
     *     P147147_Seata之@GlobalTransactional验证
     *     13:30
     *     P148148_Seata之原理简介
     *     33:46
     *     P149149_大厂面试第三季预告片之雪花算法(上)
     *     37:26
     *     P150150_大厂面试第三季预告片之雪花算法(下)
     *     41:36
     *
     * 今天帮公司面试了个要15K的java程序员，看看我都问他些什么问题
     * 06:03
     *
     * 今天帮公司面试了个要15K的java程序员，看看我都问他些什么问题
     * 我是程
     */

    static void Print(){

    }

}
